package org.example.ims.Service.Order;


import org.example.ims.Entity.Order.OutStockOrder;
import org.springframework.data.domain.Page;

public interface OutStockOrderService {

    OutStockOrder createOrder(OutStockOrder order);

    OutStockOrder updateOrder(Integer orderId, OutStockOrder order);

    void deleteOrder(Integer orderId);

    OutStockOrder getOrderById(Integer orderId);

    Page<OutStockOrder> getAllOrders(Integer page, Integer size);

    Page<OutStockOrder> searchOrders(String status,
                                     Integer customerId, Integer salesmanId, Integer warehouseId,
                                     Integer page, Integer size);

    void executeOrder(Integer orderId);

    // 其他功能，如根据时间查询
}